package com.fjec.market.es.repository;

import com.fjec.market.es.document.BusinessDocument;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;

import java.util.Arrays;
import java.util.List;

public interface BusinessRepository extends ElasticsearchCrudRepository<BusinessDocument, Long> {
    List<BusinessDocument> findByShopNameAndBusiType(String shopName, int busiType);

    List<BusinessDocument> findByShopName(String title);
}
